#ifndef WINDI_H
#define WINDI_H

#include <QWidget>
#include <QPainter>
#include <QMouseEvent>
#include <QMovie>
#include "beibao.h"
#include "ui_beibao.h"

namespace Ui {
class windi;
}

class windi : public QWidget
{
    Q_OBJECT

public:
    int n=0;
    explicit windi(QWidget *parent = 0);
    ~windi();

    virtual void mouseMoveEvent(QMouseEvent *event);
    virtual void mousePressEvent(QMouseEvent *event);
    virtual void mouseReleaseEvent(QMouseEvent *event);

private slots:
    void on_pushButton_clicked();


    void on_pushButton_2_clicked();

private slots:
    void recvkaichang();

    void on_beibao_clicked();

    void on_pushButton_3_clicked();

    void on_checkBox_stateChanged(int arg1);

    void on_pushButton_4_clicked();

private:
    Ui::windi *ui;
    QPixmap MainWidgetImage;
    bool ifdragging;
    QPoint startPosition;
    QPoint framePosition;
};

#endif // WINDI_H
